#
# Copyright xgliu515@gmail.com
#


# Global
ROOTFS = rootfs
KERNEL = linux


# System
MAKE = make
CC = gcc
TIME = time
RM = rm -fr
LD = ld -r
LN = ln -sf
MKDIR = mkdir -p
INSTALL = install

ifeq ($(UID), 0)
SUDO = 
else
SUDO = sudo
endif

#DOWNLOAD_CMD = "axel -n 4 -v"
DOWNLOAD_CMD = "wget"

# Set debug
DEBUG = y

ifeq ($(DEBUG), y)
DEBFLAGS = -O -g # "-O" is needed to expand inlines
else
DEBFLAGS = -O2 
endif

NK_CFLAGS := $(DEBFLAGS) -Wall -Werror
NK_INCDIR := -I$(NK_SRC)/include
NK_LIBDIR := -L$(NK_SRC)/lib
NK_LIB := -lnkfm -lpthread -lrt -levent

NK_BUILD_FLAGS := $(NK_CFLAGS) $(NK_INCDIR) $(NK_LIBDIR)


